AddBIMDataSource

Adds a specified BIM layer for inclusion in the 3DML.

 

C#

 

int AddBIMDataSource(

       string title,

       string path,

       double llX = 0,

       double llY = 0,

       double altitudeOffset = 0,

       double scale = 1,

       dynamic sgworldForTerrainRelativeAltitude = null,

       AltitudeUnitTypeCode zValueUnitsCode = AltitudeUnitTypeCode.Meters,

       string palettePath = null)

Parameters

Title

Name of the 3DML layer in which the BIM layer is being included.

Path

Path to the FBX BIM file that is being added.

llX

Lat-Long X coordinate.

llY

Lat-Long Y coordinate.

altitudeOffset

The altitude for the BIM layer’s pivot point. If there is a Z value, this value is added to each Z-coordinate.

This parameter can be either of the following:

·        A constant number value.

·        An attribute value in brackets.

scale

Scale of the model.

sgworldForTerrainRelativeAltitude

Reserved. Always pass null for this parameter. The API only supports layers with absolute altitude values.

zValueUnitsCode

An enum that indicates in which z-coordinate units of measurement the model was created. The AltitudeUnitTypeCode enum can use any of the following values:

§  Meters = 0

§  Feet = 1

§  Centimeters = 2

§  Decimeters = 3

§  Inches = 4

§  Yards = 5

palettePath

Path to the XML file that colors different materials in different colors.

Return Value

An integer that represents the index value of the added layer.